const state = {
  unreadCount: 5
}

const mutations = {
  SET_UNREAD_COUNT(state, count) {
    state.unreadCount = count
  }
}

const actions = {
  updateUnreadCount({ commit }, count) {
    commit('SET_UNREAD_COUNT', count)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
